<?php 
class Province extends Module{
    static function permission(){
        return array(
                    'location_admin' => "Quản trị Location",
                );
    }
    
	function Province($row){
		Module::Module($row);
		if(User::have_permit('location_admin')){
			switch(Url::get('cmd')){
                case 'edit':
                case 'add':
                    require_once 'forms/EditProvince.php';
                    $this->add_form(new EditProvinceForm());
                    break;
                default:
                    require_once 'forms/ListProvince.php';
                    $this->add_form(new ListProvinceForm());
                    break;
            }
		}
		else{
			Url::access_denied();
		}
	}
}
?>